<template>
  <div class="page-header col-xs-offset-2 col-xs-8">
    <h2>Vue路由测试</h2>
    <button @click="tui">后退</button>
    <button @click="jin">前进</button>
    <button @click="test">测试一个go</button>
  </div>
</template>

<script>
  export default {
    name:'Header',
    methods: {
      tui(){
        this.$router.back()
      },
      jin(){
        this.$router.forward()
      },
      test(){
        this.$router.go(3)
      }
    },
  }
</script>